<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>set_check [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_system.html">系统</a> / <a href="toc_system_errorhandling.html">错误处理</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">set_check</span><span data-if="c" style="display:none;">set_check</span><span data-if="cpp" style="display:none;">SetCheck</span><span data-if="dotnet" style="display:none;">SetCheck</span><span data-if="python" style="display:none;">set_check</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">set_check</span><span data-if="c" style="display:none;">set_check</span><span data-if="cpp" style="display:none;">SetCheck</span><span data-if="dotnet" style="display:none;">SetCheck</span><span data-if="python" style="display:none;">set_check</span></code> — HALCON控制模式的激活和停用。</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>set_check</b>( :  : <a href="#Check"><i>Check</i></a> : )</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>set_check</b>(const char* <a href="#Check"><i>Check</i></a>)</code></p>
<p>
<code>Herror <b>T_set_check</b>(const Htuple <a href="#Check"><i>Check</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>SetCheck</b>(const HTuple&amp; <a href="#Check"><i>Check</i></a>)</code></p>
<p>
<code>static void <a href="HSystem.html">HSystem</a>::<b>SetCheck</b>(const HTuple&amp; <a href="#Check"><i>Check</i></a>)</code></p>
<p>
<code>static void <a href="HSystem.html">HSystem</a>::<b>SetCheck</b>(const HString&amp; <a href="#Check"><i>Check</i></a>)</code></p>
<p>
<code>static void <a href="HSystem.html">HSystem</a>::<b>SetCheck</b>(const char* <a href="#Check"><i>Check</i></a>)</code></p>
<p>
<code>static void <a href="HSystem.html">HSystem</a>::<b>SetCheck</b>(const wchar_t* <a href="#Check"><i>Check</i></a>)  <span class="signnote">
            (
            Windows only)
          </span></code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>SetCheck</b>(<a href="HTuple.html">HTuple</a> <a href="#Check"><i>check</i></a>)</code></p>
<p>
<code>static void <a href="HSystem.html">HSystem</a>.<b>SetCheck</b>(<a href="HTuple.html">HTuple</a> <a href="#Check"><i>check</i></a>)</code></p>
<p>
<code>static void <a href="HSystem.html">HSystem</a>.<b>SetCheck</b>(string <a href="#Check"><i>check</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>set_check</b>(<a href="#Check"><i>check</i></a>: MaybeSequence[str]) -&gt; None</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p>With the help of 该算子 <code><span data-if="hdevelop" style="display:inline">set_check</span><span data-if="c" style="display:none">set_check</span><span data-if="cpp" style="display:none">SetCheck</span><span data-if="com" style="display:none">SetCheck</span><span data-if="dotnet" style="display:none">SetCheck</span><span data-if="python" style="display:none">set_check</span></code> different control modes
of the HALCON system can be activated or deactivated. If a certain control
mode is activated, parameters etc., will be checked at runtime. Whenever an
inconsistency is hereby detected, the program will be interrupted by an
exception.
</p>
<p>It is recommendable to activate the control modes during the development of
a program and to deactivate them only after a successfully concluded test run.
For if the control mode is deactivated and an error occurs, the system may
react in an unpredictable way.
</p>
<p>The HALCON system provides various possible control modes which can be
activated and deactivated independently. By calling 该算子
<code><span data-if="hdevelop" style="display:inline">set_check</span><span data-if="c" style="display:none">set_check</span><span data-if="cpp" style="display:none">SetCheck</span><span data-if="com" style="display:none">SetCheck</span><span data-if="dotnet" style="display:none">SetCheck</span><span data-if="python" style="display:none">set_check</span></code> with the name (<a href="#Check"><i><code><span data-if="hdevelop" style="display:inline">Check</span><span data-if="c" style="display:none">Check</span><span data-if="cpp" style="display:none">Check</span><span data-if="com" style="display:none">Check</span><span data-if="dotnet" style="display:none">check</span><span data-if="python" style="display:none">check</span></code></i></a>) of the desired control
mode, this control mode is activated; the control mode is deactivated by
passing its name prefixed with a tilde
(~, e.g., '~data').
</p>
<p>Except for the control mode <i><span data-if="hdevelop" style="display:inline">'memory'</span><span data-if="c" style="display:none">"memory"</span><span data-if="cpp" style="display:none">"memory"</span><span data-if="com" style="display:none">"memory"</span><span data-if="dotnet" style="display:none">"memory"</span><span data-if="python" style="display:none">"memory"</span></i> that is set exclusively for
the whole system, all control modes are set thread-specific by default. When
preceding the name of these control modes with a <i><span data-if="hdevelop" style="display:inline">'ref_'</span><span data-if="c" style="display:none">"ref_"</span><span data-if="cpp" style="display:none">"ref_"</span><span data-if="com" style="display:none">"ref_"</span><span data-if="dotnet" style="display:none">"ref_"</span><span data-if="python" style="display:none">"ref_"</span></i> prefix, only
the reference value of the particular mode is set. The reference value is
used to initialize the respective mode when starting a new user thread.
</p>
<p>Available control modes:
</p>
<dl class="generic">


<dt><b>'color':</b></dt>
<dd>
<p>

If this control mode is activated, only colors may be used which are
supported by the display for the currently active window. Otherwise an
error message is displayed.</p>
<p>
In case of deactivated control mode and non existent colors, the {em
nearest color} is used (see also <a href="set_color.html"><code><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></code></a>,
<a href="set_gray.html"><code><span data-if="hdevelop" style="display:inline">set_gray</span><span data-if="c" style="display:none">set_gray</span><span data-if="cpp" style="display:none">SetGray</span><span data-if="com" style="display:none">SetGray</span><span data-if="dotnet" style="display:none">SetGray</span><span data-if="python" style="display:none">set_gray</span></code></a>, <a href="set_rgb.html"><code><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></code></a>).
</p>
</dd>

<dt><b>'text':</b></dt>
<dd>
<p>

If this control mode is activated, it will check the coordinates
during the setting of the text cursor as well as during the display
of strings (<a href="write_string.html"><code><span data-if="hdevelop" style="display:inline">write_string</span><span data-if="c" style="display:none">write_string</span><span data-if="cpp" style="display:none">WriteString</span><span data-if="com" style="display:none">WriteString</span><span data-if="dotnet" style="display:none">WriteString</span><span data-if="python" style="display:none">write_string</span></code></a>) to the effect whether
a part of a sign would lie outside the window frame (a fact which
is not forbidden in principle by the system).</p>
<p>
If the control mode is deactivated, the text will be clipped at
the window frame.
</p>
</dd>

<dt><b>'data':</b></dt>
<dd>
<p>

(For program development)</p>
<p>
Checks the consistency of image objects (regions and gray value
components.
</p>
</dd>

<dt><b>'interface':</b></dt>
<dd>
<p>

If this control mode is activated, the interface between the host
language and the HALCON procedures will be checked in course
(e.g., typifying and counting of the values).
</p>
</dd>

<dt><b>'database':</b></dt>
<dd>
<p>

This is a consistency check of objects (e.g., checks whether
an object which shall be canceled does indeed exist or not.)
</p>
</dd>

<dt><b>'give_error':</b></dt>
<dd>
<p>

Determines whether errors shall trigger exceptions or not. If this
control modes is deactivated, the application program must provide
a suitable error treatment itself. Please note that errors which
are not reported usually lead to undefined output parameters which
may cause an unpredictable reaction of the program.  Details about
how to handle exceptions in the different HALCON language
interfaces can be found in the HALCON <code>“Programmer's Guide”</code> and
the <code>“HDevelop User's Guide”</code>.
</p>
</dd>

<dt><b>'father':</b></dt>
<dd>
<p>

If this control mode is activated when calling 该算子s
<a href="open_window.html"><code><span data-if="hdevelop" style="display:inline">open_window</span><span data-if="c" style="display:none">open_window</span><span data-if="cpp" style="display:none">OpenWindow</span><span data-if="com" style="display:none">OpenWindow</span><span data-if="dotnet" style="display:none">OpenWindow</span><span data-if="python" style="display:none">open_window</span></code></a>, HALCON allows only
the usage of the number of another HALCON window as the father
window of the new window; otherwise it allows also the usage of
IDs of operating system windows as the father window. This control
mode is only relevant for windows of type 'WIN32-Window' and 'X-Window'.
</p>
</dd>

<dt><b>'region':</b></dt>
<dd>
<p>

(For program development)</p>
<p>
Checks the consistency of chords (this may lead to a notable
speed reduction of routines).
</p>
</dd>

<dt><b>'clear':</b></dt>
<dd>
<p>

Normally, if a list of objects shall be canceled by using
<a href="clear_obj.html"><code><span data-if="hdevelop" style="display:inline">clear_obj</span><span data-if="c" style="display:none">clear_obj</span><span data-if="cpp" style="display:none">ClearObj</span><span data-if="com" style="display:none">ClearObj</span><span data-if="dotnet" style="display:none">ClearObj</span><span data-if="python" style="display:none">clear_obj</span></code></a>, an exception will be raised, in case individual
objects do not or no longer exist. If the <i><span data-if="hdevelop" style="display:inline">'clear'</span><span data-if="c" style="display:none">"clear"</span><span data-if="cpp" style="display:none">"clear"</span><span data-if="com" style="display:none">"clear"</span><span data-if="dotnet" style="display:none">"clear"</span><span data-if="python" style="display:none">"clear"</span></i> mode is
activated, such objects will be ignored.
</p>
</dd>

<dt><b>'memory':</b></dt>
<dd>
<p>

(For program development)</p>
<p>
Checks the memory blocks freed by the HALCON
memory management on consistency and overwriting of memory borders.
</p>
</dd>

<dt><b>'all':</b></dt>
<dd>
<p>

Activates all control modes.
</p>
</dd>

<dt><b>'none':</b></dt>
<dd>
<p>

Deactivates all control modes.
</p>
</dd>

<dt><b>'default':</b></dt>
<dd>
<p>

Default settings: ['give_error','database']
</p>
</dd>
</dl>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  <li>未经并行化处理。</li>
</ul>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="Check" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Check</span><span data-if="c" style="display:none">Check</span><span data-if="cpp" style="display:none">Check</span><span data-if="com" style="display:none">Check</span><span data-if="dotnet" style="display:none">check</span><span data-if="python" style="display:none">check</span></code></b> (input_control)  </span><span>string(-array) <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">MaybeSequence[str]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (string)</span><span data-if="dotnet" style="display:none"> (<i>string</i>)</span><span data-if="cpp" style="display:none"> (<i>HString</i>)</span><span data-if="c" style="display:none"> (<i>char*</i>)</span></span>
</div>
<p class="pardesc">Desired control mode.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>
    <span data-if="hdevelop" style="display:inline">'default'</span>
    <span data-if="c" style="display:none">"default"</span>
    <span data-if="cpp" style="display:none">"default"</span>
    <span data-if="com" style="display:none">"default"</span>
    <span data-if="dotnet" style="display:none">"default"</span>
    <span data-if="python" style="display:none">"default"</span>
</p>
<p class="pardesc"><span class="parcat">List of values:
      </span><span data-if="hdevelop" style="display:inline">'all'</span><span data-if="c" style="display:none">"all"</span><span data-if="cpp" style="display:none">"all"</span><span data-if="com" style="display:none">"all"</span><span data-if="dotnet" style="display:none">"all"</span><span data-if="python" style="display:none">"all"</span>, <span data-if="hdevelop" style="display:inline">'clear'</span><span data-if="c" style="display:none">"clear"</span><span data-if="cpp" style="display:none">"clear"</span><span data-if="com" style="display:none">"clear"</span><span data-if="dotnet" style="display:none">"clear"</span><span data-if="python" style="display:none">"clear"</span>, <span data-if="hdevelop" style="display:inline">'color'</span><span data-if="c" style="display:none">"color"</span><span data-if="cpp" style="display:none">"color"</span><span data-if="com" style="display:none">"color"</span><span data-if="dotnet" style="display:none">"color"</span><span data-if="python" style="display:none">"color"</span>, <span data-if="hdevelop" style="display:inline">'data'</span><span data-if="c" style="display:none">"data"</span><span data-if="cpp" style="display:none">"data"</span><span data-if="com" style="display:none">"data"</span><span data-if="dotnet" style="display:none">"data"</span><span data-if="python" style="display:none">"data"</span>, <span data-if="hdevelop" style="display:inline">'database'</span><span data-if="c" style="display:none">"database"</span><span data-if="cpp" style="display:none">"database"</span><span data-if="com" style="display:none">"database"</span><span data-if="dotnet" style="display:none">"database"</span><span data-if="python" style="display:none">"database"</span>, <span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span>, <span data-if="hdevelop" style="display:inline">'father'</span><span data-if="c" style="display:none">"father"</span><span data-if="cpp" style="display:none">"father"</span><span data-if="com" style="display:none">"father"</span><span data-if="dotnet" style="display:none">"father"</span><span data-if="python" style="display:none">"father"</span>, <span data-if="hdevelop" style="display:inline">'give_error'</span><span data-if="c" style="display:none">"give_error"</span><span data-if="cpp" style="display:none">"give_error"</span><span data-if="com" style="display:none">"give_error"</span><span data-if="dotnet" style="display:none">"give_error"</span><span data-if="python" style="display:none">"give_error"</span>, <span data-if="hdevelop" style="display:inline">'interface'</span><span data-if="c" style="display:none">"interface"</span><span data-if="cpp" style="display:none">"interface"</span><span data-if="com" style="display:none">"interface"</span><span data-if="dotnet" style="display:none">"interface"</span><span data-if="python" style="display:none">"interface"</span>, <span data-if="hdevelop" style="display:inline">'memory'</span><span data-if="c" style="display:none">"memory"</span><span data-if="cpp" style="display:none">"memory"</span><span data-if="com" style="display:none">"memory"</span><span data-if="dotnet" style="display:none">"memory"</span><span data-if="python" style="display:none">"memory"</span>, <span data-if="hdevelop" style="display:inline">'none'</span><span data-if="c" style="display:none">"none"</span><span data-if="cpp" style="display:none">"none"</span><span data-if="com" style="display:none">"none"</span><span data-if="dotnet" style="display:none">"none"</span><span data-if="python" style="display:none">"none"</span>, <span data-if="hdevelop" style="display:inline">'region'</span><span data-if="c" style="display:none">"region"</span><span data-if="cpp" style="display:none">"region"</span><span data-if="com" style="display:none">"region"</span><span data-if="dotnet" style="display:none">"region"</span><span data-if="python" style="display:none">"region"</span>, <span data-if="hdevelop" style="display:inline">'text'</span><span data-if="c" style="display:none">"text"</span><span data-if="cpp" style="display:none">"text"</span><span data-if="com" style="display:none">"text"</span><span data-if="dotnet" style="display:none">"text"</span><span data-if="python" style="display:none">"text"</span></p>
</div>
<h2 id="sec_result">结果</h2>
<p>该算子 <code><span data-if="hdevelop" style="display:inline">set_check</span><span data-if="c" style="display:none">set_check</span><span data-if="cpp" style="display:none">SetCheck</span><span data-if="com" style="display:none">SetCheck</span><span data-if="dotnet" style="display:none">SetCheck</span><span data-if="python" style="display:none">set_check</span></code> 返回值 <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
    , if
the parameters are correct.
Otherwise an exception will be raised.</p>
<h2 id="sec_see">参考其它</h2>
<p>
<code><a href="get_check.html"><span data-if="hdevelop" style="display:inline">get_check</span><span data-if="c" style="display:none">get_check</span><span data-if="cpp" style="display:none">GetCheck</span><span data-if="com" style="display:none">GetCheck</span><span data-if="dotnet" style="display:none">GetCheck</span><span data-if="python" style="display:none">get_check</span></a></code>, 
<code><a href="set_color.html"><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></a></code>, 
<code><a href="set_rgb.html"><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></a></code>, 
<code><a href="set_hsi.html"><span data-if="hdevelop" style="display:inline">set_hsi</span><span data-if="c" style="display:none">set_hsi</span><span data-if="cpp" style="display:none">SetHsi</span><span data-if="com" style="display:none">SetHsi</span><span data-if="dotnet" style="display:none">SetHsi</span><span data-if="python" style="display:none">set_hsi</span></a></code>, 
<code><a href="write_string.html"><span data-if="hdevelop" style="display:inline">write_string</span><span data-if="c" style="display:none">write_string</span><span data-if="cpp" style="display:none">WriteString</span><span data-if="com" style="display:none">WriteString</span><span data-if="dotnet" style="display:none">WriteString</span><span data-if="python" style="display:none">write_string</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
none</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
